package net.sureon.common;

import java.util.regex.Pattern;

public class SureonConstants {
	public static final String COOKIE_TOKEN = "token";
	public static final String COOKIE_SITEURL = "siteURL";
	public static final String COOKIE_USERID = "userID";
	public static final String COOKIE_USERNAME = "userName";
	public static final String SESSION_ATTR_COMPAYCONFIG = "companyConfigBO";
	public static final int COOKIE_MAX_AGE = 60 * 60 * 24 * 30;
	
	public static final String CHECK_BOX_OPTION_ON = "on";
	
	public static final int BIZ_CATEGORY_USER = 1;
	public static final int BIZ_CATEGORY_GROUP = 2;
	public static final int BIZ_CATEGORY_COMPANY = 3;
	
	public static final String DEFAULT_CONTEXT = "/sureon";
	
	public static final String USER_STATUS_ACTIVE = "Active";
	public static final String USER_STATUS_INACTIVE = "Inactive";
	
	
	public static final String REQ_ATTR_SITEURL = "siteUrlReqAttr";
	public static final String REQ_ATTR_CURRENTPATH = "currentPathReqAttr";
	public static final String NAV_BAR_DISPLAY = "navBarDisplay";
	public static final String NAV_BAR_DISPLAY_ADMIN = "admin";
	public static final String NAV_BAR_DISPLAY_GROUP = "group";
	public static final String NAV_BAR_DISPLAY_MEMBER = "member";
	
    public static final String REGEX_EMAIL_PATTERN =
        "^[A-Za-z0-9&'*+/=?^_{}~-]+(?:\\.[A-Za-z0-9'*+/=?^_{}~-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9-]+)*$";
    public static Pattern EMAIL_PATTERN = Pattern.compile(REGEX_EMAIL_PATTERN);
    
    
    public static final String LOGO_FOR_LEFTUP = "logoForLeftUp";
    public static final String LOGO_SITEURL_FOR_LEFTUP = "logoSiteUrlForLeftUp";
    public static final String ADVERTISING_FOR_RIGHTUP = "advertisingForRightUp";
    public static final String ADVERTISING_SITEURL_FOR_RIGHTUP = "advertisingSiteUrlForRightUp";
    
    public static final String ADMIN_EMAIL_FOR_RIGHTDOWN = "adminEmailForRightDown";
    public static final String ADMIN_TEL_FOR_RIGHTDOWN = "adminTelForRightDown";
    
    public static final String CUSTOMER_STATUS_POTENTIAL = "potential";
    public static final String CUSTOMER_STATUS_CUSTOMER = "customer";
    
    public static final int PAGE_SIZE = 15;
}
